home *** CD-ROM | disk | FTP | other *** search
- Path: newspost1.alt.net!usenet
- From: walth@netcom.com (Walt Howard)
- Newsgroups: comp.lang.c++
- Subject: Re: What is wrong with this code? (BC45)
- Date: Sun, 28 Jan 1996 12:21:45 GMT
- Organization: AltNet - Affordable Usenet Access - http://www.alt.net
- Message-ID: <4efpp3$elb@tofu.alt.net>
- References: <yMOCxg2yqvDD083yn@iaccess.za>
- Reply-To: walth@netcom.com
- X-Newsreader: Forte Agent .99c/32.126
-
- On 27 Jan 1996 13:08:15 +0200, vincer@iaccess.za (Vince Risi) wrote:
-
- >Why would I get an illegal initialization from this code?
- >
- >typedef char * pchar;
- >pchar Fred = "This is a default value";
- >pchar Mark = Fred; // <------ ????
- >
- >Is this a BC45 bug?
- >
- >Vince
- >=====
-
- Did your file have a .c extension instead of a .cpp? If it compiled as
- a C file, it would be an error on many compilers.
-
-
-